package org.kiwi.data.lb;

import java.util.Set;

/**
 * Created by jack on 16/10/26.
 */
public interface LoadBalanceStrategy<T> {

    T getWriteDsBeanName();

    T elect();

    void removeTarget(T t);

    void recoverTarget(T t);

    Set<T> getFailedTargets();
}
